<?php
include('../includes.php');

$membership = New Membership();
$membership->confirm_admin();

$agenda = new Agenda();
$week   = $agenda->current_week;
$jaar   = $agenda->year;

include('../header.php');
?>
<div id='agenda'>
<div class="block">
  <h2 class="red">Overzicht</h2>
  <div id="info">  
    <ul>
      <li>U heeft totaal <span class='nr'>(<?php echo User::get_user_count(); ?>)</span> leden.</li>
      <li><?php echo Afmelding::count_afmeldingen($week, $jaar); ?></li>
      <li><?php echo Reservering::count_reservering_per_week($week, $jaar); ?></li>
    </ul>
  </div>
</div>

<div class="block">
  <h2 class="red">Lessen</h2>
  <div id="options">
    <ul>
      <li><?php echo Website::create_link("tijden/", "Lestijden beheren"); ?></li>
      <li><?php echo Website::create_link("les/create.php", "Aanmaken", "add"); ?></li>
      <li><?php echo Website::create_link("les/select.php?a=add", "Leden Toevoegen aan meerdere bestaande lessen", "add-user"); ?></li>
      <li><?php echo Website::create_link("les/select.php?a=del", "Leden Verwijderen uit meerdere bestaande lessen", "del-user"); ?></li>
      <li><?php echo Website::create_link("les/select.php?a=edit", "Verlengen", "edit"); ?></li>
    </ul>
  </div>
</div>

<div class="block">
  <h2 class="red">Leden</h2>
  <div id="options">
    <ul>
      <li><?php echo Website::create_link("user/overzicht.php","Ledenoverzicht bekijken"); ?></li>
      <li><?php echo Website::create_link("user/add.php", "Toevoegen", "add"); ?></li>
      <li><?php echo Website::create_link("user/edit.php", "Aanpassen", "edit"); ?></li>
      <li><?php echo Website::create_link("user/delete.php", "Verwijderen", "del"); ?></li>
    </ul>
  </div>
</div>

<div class="block">
  <h2 class="red">Opschonen</h2>
  <div id="options">
    <ul>
      <li>Eens in de zoveel tijd kunt u alle verouderde gegevens of lege lessen verwijderen</li>
      <li><?php echo Website::create_link("admin/clean.php","Oude gegevens verwijderen"); ?></li>
    </ul>
  </div>
</div>
</div>
<?php include('../footer.php'); ?>